# @Time    :2025/4/3 14:51
def outer(a, b):
    def inner(x):
        return a * x + b

    return inner


y1 = outer(1, 2)
obj = y1.__closure__
# print(obj)
# print(y1(5))
# print(obj[1].cell_contents)
for cell in y1.__closure__:#__closure_:反应的是 当前闭包所访问的外部函数的值
    print(cell.cell_contents)
